//A STATIC method CANT access a NON-STATIC (instance) variable because 
//there is no INSTANCE.
package session2.statics;

public class Frog1 {
	static int frogCount = 0;

	public Frog1() {
		frogCount += 1;
	}

	public static void main(String[] args) {
		new Frog1();
		new Frog1();
		new Frog1();
		System.out.println("frog count is: " + frogCount);
	}

}
//
// package session2.statics;
//
// public class Frog1 {
// int frogCount = 0;
//
// public Frog1() {
// frogCount += 1;
// }
//
// public static void main(String[] args) {
// new Frog1();
// new Frog1();
// new Frog1();
// System.out.println("frog count is: " + frogCount);// ERR
// }
// }
